array manipulation hackerrank problem